package com.example.gsnd21study.service.impl;

import com.example.gsnd21study.entity.DRO.RoleAndUser;
import com.example.gsnd21study.mapper.RoleMapper;
import com.example.gsnd21study.service.RoleService;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import org.springframework.stereotype.Service;

@RequiredArgsConstructor
@Service
public class RoleServiceImpl implements RoleService {

    private final RoleMapper roleMapper;

    @Override
    public RoleAndUser findRoleAndUserByRoleId(Long roleId) {
        return roleMapper.selectRoleAndUserByRoleId(roleId);
    }
}
